//
//  Extension+String.swift
//  weibo
//
//  Created by  郭航 on 16/7/7.
//  Copyright © 2016年 郭航. All rights reserved.
//

import UIKit

extension String {

    func emojiStr() -> String {
        let scanner = NSScanner(string: self)
        
        var value: UInt32 = 0
        scanner.scanHexInt(&value)
        
        let str = Character(UnicodeScalar(value))
        
        return "\(str)"
    }
    
}
